
#if($initData.id)
<input type="hidden" id="video_id" name="image_id" value="$initData.id">
#else
<input type="hidden" id="video_id" name="image_id" value="">
#end

#if($initData.img_url)
<input type="hidden" id="img_url" name="img_url" value="$initData.img_url">
#else
<input type="hidden" id="img_url" name="img_url" value="">
#end


#if($initData.vedio_url)
<input type="hidden" id="video_url" name="video_url" value="$initData.vedio_url">
#else
<input type="hidden" id="video_url"  name="video_url" value="">
#end

<div class="form-group">
    <label class="col-sm-3 control-label">标题：</label>
    <div class="col-sm-6">
        #if($initData.title)
        <input type="text" id="video_title" class="form-control" value="$initData.title">
        #else
        <input type="text" id="video_title" class="form-control" value="">
        #end
    </div>
</div>

<div class="form-group">
    <label class="col-sm-3 control-label">简介：</label>
    <div class="col-sm-6">
        #if($initData.vedio_desc)
        <input type="text" id="video_desc" class="form-control" value="$initData.vedio_desc">
        #else
        <input type="text" id="video_desc" class="form-control" value="">
        #end
    </div>
</div>



<div class="form-group">
    <label class="col-sm-3 control-label"></label>
    <div class="col-sm-8">
        #if($initData.img_url)
        <img id="indexImg" src="$initData.img_url" style="width: 160px; height: 140px;">
        #else
        <img id="indexImg" src="" style="width: 160px; height: 140px;">
        #end
        <span style="color: red"> 默认大小512*512</span>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label">封面图片：</label>
    <div class="col-sm-6">


        <div class="col-sm-12 img-add" data-bind="visible: model.formEntity.bannerImgurl().length < 1">
            <div id="container">
                <a class="btn btn-default btn-lg " id="pickfiles"  >
                    <i class="glyphicon glyphicon-plus"></i>
                    <span>选择图片文件</span>
                </a>
            </div>
        </div>
    </div>
</div>



<div class="form-group">
    <label class="col-sm-3 control-label"></label>
    <div class="col-sm-9" id="video_list">

        <!--<img id="indexVideo" src="" style="width: 160px; height: 140px;">-->
        #if($initData.vedio_url)
        <video id="indexVideo" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"  data-setup="{}">

            <source src="$initData.vedio_url" type="video/mp4">
        </video>
        #end
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label">上传视频：</label>
    <div class="col-sm-6">


        <div class="col-sm-12 img-add" data-bind="visible: model.formEntity.bannerImgurl().length < 1">

            <div id="container">
                <a class="btn btn-default btn-lg " id="pickfiles2"  >
                    <i class="glyphicon glyphicon-plus"></i>
                    <span>选择视频文件</span>
                </a>
            </div>

        </div>
    </div>
</div>





<script src="/newshop/artcle/video/addVideo.js"></script>